<%--
  Created by IntelliJ IDEA.
  User: zcw
  Date: 2018/3/29
  Time: 16:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/taglibs.jspf" %>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="sys.user.title" /></title>
    <meta name="decorator" content="list"/>
    <link rel="stylesheet" href="${staticPath}/plugins/bootstrap-treeview/bootstrap-treeview.css">
    <script src="${staticPath}/plugins/bootstrap-treeview/bootstrap-treeview.js"></script>
</head>
<body title="<spring:message code="sys.user.title" />">
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-md2" >
            <view:treeview id="organizationTreeview" dataUrl="${appPath}/system/organization/getTreeData" onNodeSelected="organizationOnclick"></view:treeview>
            <script type="text/javascript">
                function organizationOnclick(event, node) {
                    //查询时间
                    //gridquery隐藏 查询标签概念，query,单独的query
                    $("input[name='organizationid']").val(node.href);
                    query('userGridIdGrid');
                }
            </script>
        </div>
        <div  class="layui-col-md10">
            <grid:grid id="userGridId" url="${appPath}/system/user/ajaxList" pageId="SYS:UserList">
                <grid:column label="sys.common.key"  query_key="true" hidden="true"   name="id" width="100"/>
                <grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
                <grid:button groupname="opt" function="delete"/>
                <grid:query name="organizationid"  queryMode="hidden" />
                <grid:column label="sys.user.realName"  name="realName"  query="true"  condition="like" />
                <grid:column label="sys.user.userName"  name="userName"  query="true" condition="like"   />
                <grid:column label="sys.user.email"  name="email" />
                <grid:column label="sys.user.phone"  name="phone"  />
                <grid:toolbar title="sys.user.createuser" function="create"/>
                <grid:toolbar title="sys.user.updateuser" function="update"/>
                <grid:toolbar title="sys.user.modifypwd" icon="icon-lock"  function="updateDialog" url="${appPath}/system/user/{id}/changePassword"  />
                <grid:toolbar function="delete"/>
                <grid:toolbar  function="search" />
                <grid:toolbar  function="reset" icon="icon-reload"  />
            </grid:grid>
        </div>
    </div>
</div>
</body>
</html>
